import request from '@/utils/request'

// 查询档案编码规则列表
export function listAmSerial(query) {
  return request({
    url: '/am/amSerial/list',
    method: 'get',
    params: query
  })
}

// 查询档案编码规则详细
export function getAmSerial(id) {
  return request({
    url: '/am/amSerial/' + id,
    method: 'get'
  })
}

// 新增档案编码规则
export function addAmSerial(data) {
  return request({
    url: '/am/amSerial',
    method: 'post',
    data: data
  })
}

// 修改档案编码规则
export function updateAmSerial(data) {
  return request({
    url: '/am/amSerial',
    method: 'put',
    data: data
  })
}

// 删除档案编码规则
export function delAmSerial(id) {
  return request({
    url: '/am/amSerial/' + id,
    method: 'delete'
  })
}
